package com.demo.design.behavioral.observer.impl;

import com.demo.design.behavioral.observer.Observer;
import com.demo.design.behavioral.observer.TargetSubject;

public class WaterRateSubject extends TargetSubject {
    @Override
    public void notifyObservers() {
        System.err.println("水利资源局下发了新通知：涨水价");
        for (Observer observer : observerList) {
            observer.response("水费涨了");
        }
    }
}
